Survival Analysis in R (in under 10-minutes) {https://t.co/cNdGBIoDj8} #rstats #DataScience
— R-bloggers (@Rbloggers) June 9, 2022
Creating flowcharts with {ggplot2} {https://t.co/2TGoUehuJE} #rstats #DataScience
— R-bloggers (@Rbloggers) June 7, 2022
Crosstab calculation in R {https://t.co/xXgclJ9gO1} #rstats #DataScience
— R-bloggers (@Rbloggers) June 11, 2022
R vs Python — Live Stream Analysis {https://t.co/NA0lcd6jtT} #rstats #DataScience
— R-bloggers (@Rbloggers) June 7, 2022
Timing data.table Operations {https://t.co/rRCaMrJfQ8} #rstats #DataScience
— R-bloggers (@Rbloggers) June 11, 2022
Filtering for Unique Values in R- Using the dplyr {https://t.co/US1O9YE7TB} #rstats #DataScience
— R-bloggers (@Rbloggers) June 12, 2022
Object-Oriented Programming (OOP) in R with R6 – The Complete Guide {https://t.co/vFrzU5qihL} #rstats #DataScience
— R-bloggers (@Rbloggers) June 10, 2022
Why I use base graphics instead of ggplot2 {https://t.co/cPMLVmjxBG} #rstats #DataScience
— R-bloggers (@Rbloggers) June 8, 2022
Visualize SHAP Values without Tears {https://t.co/7q47QnBdZM} #rstats #DataScience
— R-bloggers (@Rbloggers) June 10, 2022
Count Observations by Group in R {https://t.co/Uy0NJ3Bjt6} #rstats #DataScience
— R-bloggers (@Rbloggers) June 6, 2022
map projections in rgdal and sf {https://t.co/z6zuxWBmeL} #rstats #DataScience
— R-bloggers (@Rbloggers) June 9, 2022
Should I say ”there is no difference” or ”the difference is not significant”? {https://t.co/cr9cDbsEHR} #rstats #DataScience
— R-bloggers (@Rbloggers) June 8, 2022
ggblanket: making beautiful ggplot2 visualisation simpler {https://t.co/JzjvIxey0D} #rstats #DataScience
— R-bloggers (@Rbloggers) May 14, 2022
Best Books to Learn R Programming {https://t.co/e6v6GstTSL} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2022
Dashboards in R with Shiny Dashboard {https://t.co/FOwmd72jab} #rstats #DataScience
— R-bloggers (@Rbloggers) May 20, 2022
Survival Analysis in R (in under 10-minutes) {https://t.co/cNdGBIoDj8} #rstats #DataScience
— R-bloggers (@Rbloggers) June 9, 2022
R Shiny in Agriculture – Top 5 Dashboard Examples {https://t.co/b0mUpuGVIB} #rstats #DataScience
— R-bloggers (@Rbloggers) June 1, 2022
Creating flowcharts with {ggplot2} {https://t.co/2TGoUehuJE} #rstats #DataScience
— R-bloggers (@Rbloggers) June 7, 2022
Creating Dashboards in R {https://t.co/jiKvynHvjy} #rstats #DataScience
— R-bloggers (@Rbloggers) May 20, 2022
8 New Books added to Big Book of R {https://t.co/lfDXAGEsl2} #rstats #DataScience
— R-bloggers (@Rbloggers) May 29, 2022
April: “Top 40” New CRAN Packages {https://t.co/l8dGHbHIHl} #rstats #DataScience
— R-bloggers (@Rbloggers) May 31, 2022
Hierarchical data visualization with Shiny and D3 {https://t.co/KxkqcTvrHM} #rstats #DataScience
— R-bloggers (@Rbloggers) May 20, 2022
Calculate the p-Value from Z-Score in R {https://t.co/7lAhqFAJ1k} #rstats #DataScience
— R-bloggers (@Rbloggers) May 27, 2022
How to draw heatmap in r: Quick and Easy way {https://t.co/xwXe57Q8FI} #rstats #DataScience
— R-bloggers (@Rbloggers) May 16, 2022
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```